import {makeObservable, observable, action, computed} from 'mobx';
class Mobx {
    constructor(){
        makeObservable(this);
    }
    @observable userInfo='富士山下'
    @observable isReadyChatNum = '明年今日';//消息已读
    @action changeUser=()=>{
        this.userInfo = '明年今日'
    }
    @computed get total(){
        return this.userInfo+this.isReadyChatNum
    }
}
export default new Mobx();